package com.faith.dynamic.util;

/**
 * @ClassName FaithDateUtil$
 * @Description 日期工具类
 * @Author faith$
 * @Date 2019/8/12 11:13
 * @Version 1.0
 **/
public class FaithDateUtil {
    private static String BASE_CRON_STR_1 = "sec min hour day month * ";

    public static String getCron(String[]dateStr){
           return BASE_CRON_STR_1
                   .replace("sec",dateStr[5])
                   .replace("min",dateStr[4])
                   .replace("hour",dateStr[3])
                   .replace("day",dateStr[2])
                   .replace("month",dateStr[1]);
    }

}
